class CompareLogicExer{
 public static void main(String[] args){
  int a = 20;
  int b = 20;
  boolean bo1 = ++a%3 == 0 && a++%7 == 0;
  boolean bo2 = b++%3 == 0 && ++b%7 == 0;
  System.out.println(a+" "+bo1);
  System.out.println(b+" "+bo2);


 }
}
